calendar object

This method returns the number of days between two dates.

double diff_days(calendar@ object)

Parameters:
object
The handle to another valid calendar object.

Return value:
The difference between the current calendar's date and the date of the passed calendar object handle in days.

Remarks:
Unlike diff_years, this method returns an integer representation of the difference.

Example:
// Find out the number of days between October 7, 1767 and now.

void main()
{
calendar test;
calendar now;
test.set(1767, 10, 7, 9, 0, 0);
double diff=test.diff_days(now);
alert("diff_days", "There are "+diff+" days between October 7, 1767 and now.");
}